<#ftl encoding="UTF-8" />
            <div id="panelTop" style="position:relative; height:45px; background-color:#fff;">
                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                    <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                    <button type="button" name="_ButCheck" id="ButCheck" class="act__button act__check" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                    <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button act__check" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                    <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                </div>
                <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                    <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                </div>
                <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:20px;">
                    <div class="panel__toolbar_item">
                        <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                    </div>
                    <div class="panel__toolbar_item" disabled="disabled">
                        <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                    </div>
                </div>
            </div>

            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if headerId?exists>${headerId}<#else>0</#if>" />
            <div style="position:absolute; top:13px; right:200px;">
                <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
            </div>

            <div id="panelData" style="position:relative; top:0px;">
                <!-- 内容 -->
                <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                    <li id="menu_01" class="tabInactive" style="margin-left:8px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">合同评审表（二）</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_02">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">合同评审表明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelContent" class="tab__wrapper" style="top:0px; height:auto;">
                    <!-- 主表信息 -->
                    <div id="tabWrapper_01" class="tab__content" style="padding-top:5px; width:100%;">
                        <form id="form_data" class="form__data_content">
                            <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                                    <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                                    <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                                </div>
                            </div>
                            <div class="data__table_wrapper">
                                <table class="data__table">
                                    <colgroup>
                                        <col style="width: 7%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 7%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 7%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 7%;" />
                                        <col />
                                    </colgroup>
                                    <tbody>
                                        <tr>
                                            <td class="td__label">
                                                <label for="ContractNo">合同号<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="MoHeaderId" name="_MoHeaderId" value="" />
                                                <div id="ChoiceContractNo" class="form_input_dropdown_wrapper" style="width:90%;" onclick="_InstancePageHeader.DoChoiceContractNo();">
                                                    <input type="text" id="ContractNo" name="_ContractNo" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="1" />
                                                </div>
                                            </td>
                                            <td class="td__label">
                                                <label for="CustomerName">客户名称</label>
                                            </td>
                                            <td>
                                                <input type="text" id="CustomerName" name="_CustomerName" tabindex="2" style="width:100%;" />
                                            </td>
                                            <td class="td__label">
                                                <label for="TotalQuantity">合同签订日</label>
                                            </td>
                                            <td>
                                                <input type="text" id="TotalQuantity" name="_TotalQuantity" readonly="readonly" tabindex="3" />
                                            </td>
                                            <td class="td__label">
                                                <label for="SaledByName">贸易担当</label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="SaledBy" name="_SaledBy" value="" tabindex="4" />
                                                <div id="ChoiceSaledBy" class="form_input_dropdown_wrapper" style="width:135px;" onclick="_InstancePageHeader.DoChoiceSaledBy();">
                                                    <input type="text" id="SaledByName" name="_SaledByName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="4" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label">
                                                <label for="TradeModeName">贸易形式<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="TradeModeId" name="_TradeModeId" value="" tabindex="5" />
                                                <div id="ChoiceTradeModeName" class="form_input_dropdown_wrapper" style="width:90%;" onclick="_InstancePageHeader.DoChoiceTradeModeName();">
                                                    <input type="text" id="TradeModeName" name="_TradeModeName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="5" />
                                                </div>
                                            </td>
                                            <td class="td__label">
                                                <label for="CurTypeId">结算币种<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="CurTypeId" name="_CurTypeId" value="" tabindex="6" />
                                                <div id="ChoiceCurType" class="form_input_dropdown_wrapper" style="width:130px;" onclick="_InstancePageHeader.DoChoiceCurType();">
                                                    <input type="text" id="TradeModeName" name="_TradeModeName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="6" />
                                                </div>
                                            </td>
                                            <td class="td__label">
                                                <label for="ExchangeRateId">报价汇率<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="ExchangeRateId" name="_ExchangeRateId" value="" tabindex="7" />
                                                <div id="ChoiceExchangeRate" class="form_input_dropdown_wrapper" style="width:130px;" onclick="_InstancePageHeader.DoChoiceExchangeRate();">
                                                    <input type="text" id="ExchangeRateName" name="_ExchangeRateName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="7" />
                                                </div>
                                            </td>
                                            <td class="td__label">
                                                <label for="SettlementModeId">结算方式<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="SettlementModeId" name="_SettlementModeId" value="" tabindex="8" />
                                                <div id="ChoiceSettlementModeI" class="form_input_dropdown_wrapper" style="width:90%;" onclick="_InstancePageHeader.DoChoiceSettlementMode();">
                                                    <input type="text" id="SettlementModeName" name="_SettlementModeName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="8" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="Notes">价格条款</label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="Description" name="_Description" rows="9" tabindex="9" style="width:100%; height:54px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label">
                                                <label for="TotalQuantity">总生产数</label>
                                            </td>
                                            <td>
                                                <input type="text" id="TotalQuantity" name="_TotalQuantity" style="width:120px;" tabindex="10" />
                                            </td>
                                            <td class="td__label">
                                                <label for="TotalCost">总费用</label>
                                            </td>
                                            <td>
                                                <input type="text" id="TotalCost" name="_TotalCost" style="width:120px;" tabindex="11" />
                                            </td>
                                            <td class="td__label">
                                                <label for="DateOfStatement">预计结单日<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="text" id="DateOfStatement" name="_DateOfStatement" tabindex="12" />
                                            </td>
                                            <td class="td__label">
                                                <label for="WhatRound">评审次别<em>★</em></label>
                                            </td>
                                            <td>
                                                <input type="text" id="WhatRound" name="_WhatRound" style="width:30px;" tabindex="13" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="Description">备注</label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="Description" name="_Description" rows="3" tabindex="14" style="width:100%; height:54px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label">
                                                <label for="IsIncludeSample">已做合同</label>
                                            </td>
                                            <td style="position: relative;">
                                                <input type="checkbox" class="checkbox" id="IsIncludeSample" name="_IsIncludeSample" tabindex="16" />
                                                <div class="checkbox_lines" style="width:120px;"></div>
                                            </td>
                                            <td class="td__label">
                                                <label for="UpdatedByName">操作情况</label>
                                            </td>
                                            <td>
                                                <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="17 value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:80px;">
                                                <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="18" style="width:90px;" />
                                            </td>
                                            <td class="td__label">
                                                <label for="CheckedByName">审核情况</label>
                                            </td>
                                            <td>
                                                <input type="hidden" id="CheckedBy" name="_CheckedBy" />
                                                <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="19" style="width:80px;" />
                                                <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="20" style="width:90px;" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>

                    <!-- 明细部分 -->
                    <div id="tabWrapper_02" class="tab__content" style="padding-top:5px; width:100%; display:none;">
                        <div id="panelTop_02" style="position:relative; height:24px; padding-top:3px; margin:0 8px; background-color:#fff;">
                            <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageLinesMrp.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        </div>
                        <div id="panelSlaveData_02" style="position:relative; top:10px; margin:0 8px;">
                            <table id="tabLinesList" style="width:100%;">
                                <tr>
                                    <td style="overflow:hidden; width:383px;">
                                        <div id="divH11" style="overflow:hidden; border:none;">
                                            <table id="tabHeader11" class="layout display" style="width:100%;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 230px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr style="height:54px;">
                                                        <th style="vertical-align:middle;">
                                                           <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this),'_check_row');" /><i></i><span></span></label>
                                                        </th>
                                                        <th style="vertical-align:middle; text-align:center;">删除</th>
                                                        <th style="vertical-align:middle;">日期</th>
                                                        <th style="vertical-align:middle;">款号</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                    <td style="position:relative; vertical-align:top;">
                                        <div id="divH12" class="header__with__margin_02">
                                            <table id="tabHeader12" class="layout display" style="margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 160px;" />
                                                    <col style="width: 75px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 85px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 400px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th rowspan="2" style="vertical-align:middle;" class="report">品名</th>
                                                        <th rowspan="2" style="vertical-align:middle;" class="report edit__column">订单总量</th>
                                                        <th rowspan="2" style="vertical-align:middle;" class="report">颜色</th>
                                                        <th rowspan="2" style="vertical-align:middle; padding-left:8px;" class="report edit__column">成&nbsp;&nbsp;&nbsp;&nbsp;品<br /><span style="display:block;">FOB价</span></th>
                                                        <th rowspan="2" style="vertical-align:middle; padding-left:8px;" class="report edit__column">成品单价<br/> <span style="display:block;">&nbsp;&nbsp;（元）</span></th>
                                                        <th colspan="4" style="vertical-align:middle; text-align:center;" class="cell_01">单位成本</th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">单位毛利润额</th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">毛利率</th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">应退（交）<br/><span style="display:block;">增值税</span></th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">毛利税率</th>
                                                        <th colspan="7" style="vertical-align:middle; text-align:center;" class="cell_01">单位费用</th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">单位营业<br/><span style="display:block;">利润额</span></th>
                                                        <th rowspan="2" style="vertical-align:middle; text-align:center;" class="report">单位营业<br/><span style="display:block;">利润率</span></th>
                                                        <th rowspan="2" style="vertical-align:middle; padding-left:8px;" class="report edit__column">总起订<br/><span style="display:block;">量损失</span></th>
                                                        <th rowspan="2" style="vertical-align:middle;" class="report edit__column">总起订量余料处理意见</th>
                                                    </tr>
                                                    <tr >
                                                        <th style="text-align:center;" class="edit__column cell_02">工厂主料</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">国内材料</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">加工费</th>
                                                        <th style="text-align:center;" class="cell_02">小计</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">检测</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">银行</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">进出口</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">配额</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">包装</th>
                                                        <th style="text-align:center;" class="edit__column cell_02">其他</th>
                                                        <th style="text-align:center;" class="cell_02">小计</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align:top; width:393px;">
                                        <div id="divD11" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                            <table id="tabData11" class="responsive__table dragable__table" style="margin-top:-1px;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 230px;" />
                                                </colgroup>
                                                <tbody></tbody>
                                            </table>
                                        </div>
                                    </td>
                                    <td class="with__border__lines" style="vertical-align:top; width:100%;">
                                        <div id="divD12" class="grid__data_wrapper" style="overflow:scroll;" onscroll="_InstancePageLines.ScrollTo();">
                                            <table id="tabData12" class="responsive__table dragable__table" style="margin-top:-1px; margin-left:-1px; border-bottom:1px solid #c6c3bd; width:100%;">
                                                <colgroup>
                                                    <col style="width: 160px;" />
                                                    <col style="width: 75px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 85px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 388px;" />
                                                </colgroup>
                                                <tbody></tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
